package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedou.sdk.params.bean.Popup;
import com.kedou.sdk.params.bean.UserInfo;

/**
 * Created by Administrator on 2017/6/7 0007.
 */

public class LoginResponseParams extends ResponseParams<LoginResponseParams.LoginResponseData> {

    public LoginResponseParams() {
    }

    public static class LoginResponseData implements Parcelable {

        private UserInfo game_user;
        private UserInfo box_user;
        private String access_token;
        private String username;
        private String id;
        private String trumpet_user_id;
        private Popup popup;

        public Popup getPopup() {
            return popup;
        }

        public void setPopup(Popup popup) {
            this.popup = popup;
        }

        public UserInfo getGame_user() {
            return game_user;
        }

        public void setGame_user(UserInfo game_user) {
            this.game_user = game_user;
        }

        public UserInfo getBox_user() {
            return box_user;
        }

        public void setBox_user(UserInfo box_user) {
            this.box_user = box_user;
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTrumpet_user_id() {
            return trumpet_user_id;
        }

        public void setTrumpet_user_id(String trumpet_user_id) {
            this.trumpet_user_id = trumpet_user_id;
        }

        public LoginResponseData() {
        }

        @Override
        public int describeContents() {
            return 0;
        }



        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeParcelable(this.game_user, flags);
            dest.writeParcelable(this.box_user, flags);
            dest.writeString(this.access_token);
            dest.writeString(this.username);
            dest.writeString(this.id);
            dest.writeString(this.trumpet_user_id);
            dest.writeParcelable(this.popup,flags);

        }

        protected LoginResponseData(Parcel in) {
            this.game_user = in.readParcelable(UserInfo.class.getClassLoader());
            this.box_user = in.readParcelable(UserInfo.class.getClassLoader());
            this.access_token = in.readString();
            this.username = in.readString();
            this.id = in.readString();
            this.trumpet_user_id = in.readString();
            this.popup = in.readParcelable(Popup.class.getClassLoader());

        }

        public static final Creator<LoginResponseData> CREATOR = new Creator<LoginResponseData>() {
            @Override
            public LoginResponseData createFromParcel(Parcel source) {
                return new LoginResponseData(source);
            }

            @Override
            public LoginResponseData[] newArray(int size) {
                return new LoginResponseData[size];
            }
        };
    }

}
